package com.mspbots.rule.queue.ticket;

import com.mspbots.cw.request.TenantTicketDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author Dinnes Zhang
 * @date
 */
@Slf4j
@Component
public class TicketCompletedQueue extends TicketBaseQueue {
    private static final String RULE_NAME = "TicketCompleted";

    @RabbitListener(queues = "trigger.ticket.TicketCompleted")
    public void onQueue(TenantTicketDTO tenantTicketDTO) {
        super.onRule(RULE_NAME, tenantTicketDTO);
    }
}
